package com.tsmti.webservice.exception;

/**
 * @Package：com.tsmti.webservice.exception
 * @Class：WebServiceException
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/10/14 9:32
 * @Company:
 * @Version：
 * @Modified By:
 */
public class WebServiceException extends RuntimeException{

    private static final long serialVersionUID = 3030865463674125770L;
    /**错误代码*/
    private String code;
    /**错误消息*/
    private String message;
    public  WebServiceException(){
        super();
    }
    public  WebServiceException(String message){
        super(message);
    }
    public  WebServiceException(String code,String message){
        super(message);
        this.code = code;
    }
    public  WebServiceException(ErrorCodeEnums enums){
        super(enums.getErrorMessage());
        this.code = enums.getErrorCode();
    }

}
